package whereRU.frontEnd;

import java.util.ArrayList;
import routeFunctions.Loc;
import XMLread.BuildingCSV;
import XMLread.Space;
import android.app.Application;
import android.util.SparseArray;

/**
 * An Application class to easily store and retrieve necessary information
 * between activities.
 */
public class MyApplication extends Application {
	private ArrayList<BuildingCSV> buildings;
	private SparseArray<ArrayList<Space>> spaces;
	private Loc userLocation;
	
	public void setBuildings(ArrayList<BuildingCSV> buildings) {
		this.buildings = buildings;
	}
	
	public ArrayList<BuildingCSV> getBuildings() {
		return buildings;
	}
	
	public void setSpaces(SparseArray<ArrayList<Space>> spaces) {
		this.spaces = spaces;
	}
	
	public SparseArray<ArrayList<Space>> getSpaces() {
		return this.spaces;
	}
	
	public Loc getUserLocation() {
		return userLocation;
	}

	public void setUserLocation(Loc loc) {
		this.userLocation = loc;
	}
}
